<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
 *  XJ_Output Class
 *
 *  Responsible for sending final output to the browser.
 *
 *  @package		XJPHP
 *  @subpackage	Libraries
 *  @category	Output
 */
if ( ! class_exists('XJ_Output'))
{
    class XJ_Output{
        /**
         * Append Output
         *
         * Appends data onto the output string.
         *
         * @param	string	$output	Data to append
         * @return	XJ_Output
         */
        function append($output)
        {
            return xj_output_append($output);
        }
        /**
         * Append Output
         *
         * Appends data onto the output string.
         *
         * @param	string	$output	Data to append
         * @return	XJ_Output
         */
        function display($output = '')
        {
            global  $xj_final_output;
            echo $xj_final_output;
            //xj_show_info($xj_final_output);
            return xj_output_display($output);
        }
        /**
         * Set HTTP Status Header
         * moved to Common procedural functions in 1.7.2
         *
         * @access	public
         * @param	int		the status code
         * @param	string
         * @return	void
         */
        function set_status_header($code = 200, $text = '')
        {
            xj_set_status_header($code, $text);
            return $this;
        }
    };
}